export default {
  path: '/movie',
  component: () => import('@/views/Movie'),
  children: [
    {path: 'city', component: () => import('@/components/movie/City')},
    {path: 'nowing', component: () => import('@/components/movie/Nowing')},
    {path: 'comming', component: () => import('@/components/movie/Comming')},
    {path: 'search', component: () => import('@/components/movie/Search')},
    {
      path: 'nowing/detail/:movieId',
      components: {
        default: () => import('@/components/movie/Nowing'),
        detail: ()=> import ('@/components/movie/Detail')
      },
      props: { detail: true }
    },
    {
      path: 'comming/detail/:movieId',
      components: {
        default: () => import('@/components/movie/Comming'),
        detail: ()=> import ('@/components/movie/Detail')
      },
      props: { detail: true }
    },
    {path: '/',redirect: '/movie/nowing'},
  ]
}